package com.tarena.charging.device.timer;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

//@Component
@Slf4j
public class RedisWarmTimer {
    //TODO 注入redisTemplate
    @Scheduled(fixedDelay = 5000)
    public void initRedis(){
        log.info("执行了一次预热");
    }
}
